/*
 * package com.liang.activiti;
 * 
 * import java.util.List;
 * 
 * import org.activiti.engine.ProcessEngine; import
 * org.activiti.engine.repository.Deployment; import
 * org.activiti.engine.repository.ProcessDefinition; import org.junit.Test;
 * import org.springframework.context.ApplicationContext; import
 * org.springframework.context.support.ClassPathXmlApplicationContext;
 * 
 * public class Activiti { ApplicationContext ioc=new
 * ClassPathXmlApplicationContext("applicationContext.xml"); ProcessEngine
 * processEngine =ioc.getBean("processEngineFactory",ProcessEngine.class);
 * 
 * @Test public void text01() { System.out.println(processEngine); }
 * 
 * @Test public void text02() {
 * processEngine.getRepositoryService().createDeployment().addClasspathResource(
 * "MyProcess1.bpmn").deploy(); }
 * 
 * @Test public void text03() { List<Deployment> list =
 * processEngine.getRepositoryService().createDeploymentQuery().list();
 * List<ProcessDefinition> list2 =
 * processEngine.getRepositoryService().createProcessDefinitionQuery().list();
 * System.out.println(list); System.out.println(list2); }
 * 
 * }
 */
